import Layout from '../views/layout/Layout'
const _import = require('./_import_' + process.env.NODE_ENV)
const BaseMenu = {
  path: '/baseManager',
  component: Layout,
  name: '基础配置管理',
  meta: {
    title: '基础配置管理',
    icon: 'lock'
  },
  authority: 'baseManager',
  children: [{
    path: 'userManager',
    component: _import('admin/user/index'),
    name: '用户管理',
    meta: {
      title: '用户管理',
      icon: 'component'
    },
    authority: 'userManager'
  }, {
    path: 'menuManager',
    component: _import('admin/menu/index'),
    name: '菜单管理',
    meta: {
      title: '菜单管理',
      icon: 'chart'
    },
    authority: 'menuManager'
  }, {
    path: 'deptManager',
    component: _import('admin/dept/index'),
    name: '部门管理',
    meta: {
      title: '部门管理',
      icon: 'chart'
    },
    authority: 'deptManager'
  }, {
    path: 'roleManager',
    component: _import('admin/role/index'),
    name: '角色管理',
    meta: {
      title: '角色管理',
      icon: 'chart'
    },
    authority: 'roleManager'
  }, {
    path: 'dictManager',
    icon: 'form',
    component: _import('admin/dict/index'),
    name: '数据字典',
    meta: {
      title: '数据字典',
      icon: 'form'
    },
    authority: 'dictManager'
  }, {
    path: 'configManager',
    icon: 'form',
    component: _import('admin/config/index'),
    name: '系统配置管理',
    meta: {
      title: '系统配置管理',
      icon: 'form'
    },
    authority: 'configManager'
  }, {
    path: 'gateLogManager',
    icon: 'excel',
    component: _import('admin/gateLog/index'),
    name: '操作日志管理',
    meta: {
      title: '操作日志管理',
      icon: 'excel'
    },
    authority: 'gateLogManager'
  }, {
    path: 'ipList',
    icon: 'excel',
    component: _import('admin/ip/index'),
    name: '白名单管理',
    meta: {
      title: '白名单管理',
      icon: 'component'
    },
    authority: 'ipList'
  }, {
    path: 'editUser',
    icon: 'excel',
    component: _import('admin/user/editUserIndex'),
    name: '修改个人信息',
    meta: {
      title: '修改个人信息',
      icon: 'component'
    },
    authority: 'editUser',
    hidden: true
  }, {
    path: 'editUserPhone',
    icon: 'excel',
    component: _import('admin/user/editUserPhone'),
    name: '修改手机号',
    meta: {
      title: '修改手机号',
      icon: 'component'
    },
    authority: 'editUserPhone',
    hidden: true
  }, {
    path: 'addUserPhone',
    icon: 'excel',
    component: _import('admin/user/addUserPhone'),
    name: '添加手机号',
    meta: {
      title: '添加手机号',
      icon: 'component'
    },
    authority: 'addUserPhone',
    hidden: true
  }, {
    path: 'dynamicRoute',
    icon: 'excel',
    component: _import('admin/dynamicRouting/index'),
    name: '动态路由管理',
    meta: {
      title: '动态路由管理',
      icon: 'component'
    },
    authority: 'dynamicRoute'
  }, {
    path: 'functionManager',
    component: _import('admin/function/index'),
    name: '功能管理',
    meta: {
      title: '功能管理',
      icon: 'chart'
    },
    authority: 'functionManager'
  }]
}

export default BaseMenu
